package com.api.user.model;

import java.io.Serializable;
import java.math.BigDecimal;
import javax.persistence.*;

@Table(name = "referral_log")
public class ReferralLog implements Serializable {
    @Id
    @Column(name = "referral_log_id")
    private Long referralLogId;

    @Column(name = "to_user")
    private Long toUser;

    @Column(name = "referral_user")
    private Long referralUser;

    /**
     * 推荐的人收到的
     */
    private BigDecimal amount;

    @Column(name = "order_id")
    private Long orderId;

    /**
     * 被推荐的人收到的
     */
    @Column(name = "r_amount")
    private BigDecimal rAmount;

    private static final long serialVersionUID = 1L;

    /**
     * @return referral_log_id
     */
    public Long getReferralLogId() {
        return referralLogId;
    }

    /**
     * @param referralLogId
     */
    public void setReferralLogId(Long referralLogId) {
        this.referralLogId = referralLogId;
    }

    /**
     * @return to_user
     */
    public Long getToUser() {
        return toUser;
    }

    /**
     * @param toUser
     */
    public void setToUser(Long toUser) {
        this.toUser = toUser;
    }

    /**
     * @return referral_user
     */
    public Long getReferralUser() {
        return referralUser;
    }

    /**
     * @param referralUser
     */
    public void setReferralUser(Long referralUser) {
        this.referralUser = referralUser;
    }

    /**
     * 获取推荐的人收到的
     *
     * @return amount - 推荐的人收到的
     */
    public BigDecimal getAmount() {
        return amount;
    }

    /**
     * 设置推荐的人收到的
     *
     * @param amount 推荐的人收到的
     */
    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    /**
     * @return order_id
     */
    public Long getOrderId() {
        return orderId;
    }

    /**
     * @param orderId
     */
    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    /**
     * 获取被推荐的人收到的
     *
     * @return r_amount - 被推荐的人收到的
     */
    public BigDecimal getrAmount() {
        return rAmount;
    }

    /**
     * 设置被推荐的人收到的
     *
     * @param rAmount 被推荐的人收到的
     */
    public void setrAmount(BigDecimal rAmount) {
        this.rAmount = rAmount;
    }
}